package a.f.d;

import a.c.bb;
import a.c.e;
import a.c.k;
import a.c.x;
import a.d.t;
import a.f.o;
import a.f.xc;
import a.f.zc;

public class mb
  implements u
{
  private u f;
  private o g;
  public static int h;
  
  public mb(u paramu)
  {
    this.f = paramu;
  }
  
  public void a(o paramo, bb[] paramArrayOfbb, k paramk)
  {
    k localk1;
    a_ locala_1 = new a_(localk1 = paramo.c(u.a), true);
    k localk2;
    a_ locala_2 = new a_(localk2 = paramo.c(u.b), false);
    this.g = paramo;
    paramo.a(u.a, locala_1);
    paramo.a(u.b, locala_2);
    try
    {
      this.f.a(paramo, paramArrayOfbb, paramk);
    }
    finally
    {
      this.g = null;
      paramo.a(u.a, localk1);
      paramo.a(u.b, localk2);
    }
  }
  
  protected double a(e parame, boolean paramBoolean)
  {
    int k = f.o;
    int j = f.n;
    zc localzc = this.g.d(parame);
    xc[] arrayOfxc = this.g.l(parame);
    if (((k != 0) || (arrayOfxc != null)) && (arrayOfxc.length > 0))
    {
      double d = 0.0D;
      int i = 0;
      label145:
      do
      {
        if (i >= arrayOfxc.length) {
          break;
        }
        xc localxc = arrayOfxc[i];
        t localt = localxc.c();
        if (k == 0)
        {
          if (paramBoolean) {
            d = Math.max(d, localzc.a() - localt.d());
          }
        }
        else
        {
          if (k != 0) {
            continue;
          }
          if (j == 0) {
            break label145;
          }
        }
        d = Math.max(d, localt.d() + localt.b() - (localzc.a() + localzc.c()));
        i++;
      } while (j == 0);
      return d;
    }
    return 0.0D;
  }
  
  public void a(x paramx)
  {
    this.f.a(paramx);
  }
  
  public void b(double paramDouble)
  {
    this.f.b(paramDouble);
  }
  
  public void d(double paramDouble)
  {
    this.f.d(paramDouble);
  }
  
  public void c(double paramDouble)
  {
    this.f.c(paramDouble);
  }
  
  public void a(double paramDouble)
  {
    this.f.a(paramDouble);
  }
  
  final class a_
    implements k
  {
    k a;
    boolean b;
    
    a_(k paramk, boolean paramBoolean)
    {
      this.a = paramk;
      this.b = paramBoolean;
    }
    
    public Object get(Object paramObject)
    {
      return this.a.get(paramObject);
    }
    
    public boolean getBool(Object paramObject)
    {
      return this.a.getBool(paramObject);
    }
    
    public double getDouble(Object paramObject)
    {
      return Math.max(this.a.getDouble(paramObject), mb.this.a((e)paramObject, this.b));
    }
    
    public int getInt(Object paramObject)
    {
      return this.a.getInt(paramObject);
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.d.mb
 * JD-Core Version:    0.7.0.1
 */